#include <iostream>
#include <cmath>

using namespace std;

int main() {
    int m, n;

    while (cin >> m >> n) {
        bool has = false;
        for (int i = m; i <= n; ++i) {
            int i1 = i % 10;
            int i2 = i % 100 / 10;
            int i3 = i / 100;
            if (pow(i1, 3) + pow(i2, 3) + pow(i3, 3) == i) {
                cout << i << " ";
                has = true;
            }
        }
        if (!has) {
            cout << "no";
        }
        cout << endl;
    }
    return 0;
}
